package com.java.constructore;

public class Testoverload {
    public static void main(String[] args) {
        MyMath heb = new MyMath();
        int result = heb.add(4, 5.6);
        System.out.println(result);
    }
}

class MyMath {
    public int add(int a, int b) {
        return a + b;
    }

    public int add(int a, int b, int c) {
        return a + b + c;
    }

    public int add(int a, double b) {
        return (int) (a + b);
    }
}